﻿<%@ Page Title="库存管理" Language="C#" MasterPageFile="~/POS/POS.Master" AutoEventWireup="true" CodeBehind="UpdateInv.aspx.cs" Inherits="Me.Amon.POS.UpdateInv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 200px" valign="top">
                        <table border="0" cellpadding="4" cellspacing="0" class="dialog" width="320">
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>商品代码
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbCode" runat="server" OnTextChanged="TbCode_TextChanged"></asp:TextBox>
                                    <asp:HiddenField ID="HdId" runat="server" />
                                    <asp:HiddenField ID="HdCat" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>商品名称
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlName" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    计量单位
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlUom" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    型号
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlMode" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    规格
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlSpec" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    库存
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlUsableInv" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>调整量：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbAdjust" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">
                                    <asp:Label ID="LlErr" runat="server" CssClass="failureNotification"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="BtUpdate" runat="server" Text="保存" OnClick="BtUpdate_Click" />
                                    <asp:Button ID="BnCancel" runat="server" Text="取消" OnClick="BtCancel_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="center" valign="top">
                        <table border="0" cellpadding="4" cellspacing="0" class="data_list" width="560px">
                            <tr class="data_head">
                                <th>
                                    时间
                                </th>
                                <th>
                                    增量
                                </th>
                                <th>
                                    来源s
                                </th>
                                <th>
                                    订单
                                </th>
                            </tr>
                            <asp:Repeater ID="RpPoints" runat="server">
                                <ItemTemplate>
                                    <tr class="data_rowd">
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.CREATE_TIME)%>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.INV)%>
                                        </td>
                                        <td>
                                            <%# Me.Amon.POS.M.MSpuInv.GetSource(Eval(Me.Amon.Da.Db.OMS.DSpuInv.SOURCE))%>
                                        </td>
                                        <td>
                                            <a href="SoDetail.aspx?so=<%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.ORDER_ID) %>" title="点击查看详情" target="_blank">
                                                <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.ORDER_CODE)%></a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr class="data_rowd">
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.CREATE_TIME)%>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.INV)%>
                                        </td>
                                        <td>
                                            <%# Me.Amon.POS.M.MSpuInv.GetSource(Eval(Me.Amon.Da.Db.OMS.DSpuInv.SOURCE))%>
                                        </td>
                                        <td>
                                            <a href="SoDetail.aspx?so=<%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.ORDER_ID) %>" title="点击查看详情" target="_blank">
                                                <%# Eval(Me.Amon.Da.Db.OMS.DSpuInv.ORDER_CODE)%></a>
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td colspan="5" align="right">
                                    <asp:LinkButton ID="HlHome" runat="server" OnClick="HlHome_Click">首页</asp:LinkButton>
                                    <asp:Label ID="LlPrev" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlPage1" runat="server" OnClick="HlPage1_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage2" runat="server" OnClick="HlPage2_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage3" runat="server" OnClick="HlPage3_Click">HyperLink</asp:LinkButton>
                                    <asp:Label ID="LlNext" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlLast" runat="server" OnClick="HlLast_Click">尾页</asp:LinkButton>
                                    <asp:Label ID="LlPage" runat="server">HyperLink</asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
